<?php
/**
 * Created by PhpStorm.
 * User: Duyonggao
 * Date: 2017/9/7 0007
 * Time: 上午 11:20
 */
?>
<div style="margin: 20px 0;" id="show_list">
    <?php
    $i = 0;
    $length = count($list);
    if($length > 1){
        foreach($list as $k => $good){
            if($i%4 == 0){
//                echo '<div class="row">';
            }
            if(isset($bank)){
                echo $this->render('//layouts/bank_item',['good'=>$good,'index'=>$i+1]);
            }else{
                echo $this->render('//layouts/item',['good'=>$good]);
            }

            if($i%4 == 3 || $i == ($length-1)){
//                echo '</div>';
            }
            $i++;
        }
    }else{
        ?>
        <h3>没有搜索到数据<small>请更换搜索内容...</small></h3>
        <?php
    }


    ?>
</div>
